package cn.edu.scau.dormitory_management_system.dao;

import cn.edu.scau.dormitory_management_system.entity.PermissionEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface PermissionDao extends BaseMapper<PermissionEntity> {
    List<PermissionEntity> selectPermission(int userId);
    List<Integer> listAll(int roleId);
}
